package com.ytsakura.blog.dao;

import com.ytsakura.blog.pojo.Blog;
import com.ytsakura.blog.pojo.History;
import com.ytsakura.blog.pojo.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface HistoryRepository extends JpaRepository<History,Long>{
    Page<History> findAllByUserView(Pageable pageable,User user);
}
